package com.ruoyi.lvlian.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.lvlian.domain.LhsOrder;
import com.ruoyi.lvlian.dto.LhsOrderDto;
import com.ruoyi.lvlian.dto.LhsOrderItemDto;
import com.ruoyi.lvlian.vo.LhsOrderVo;

/**
 * 莱回收订单Service接口
 * 
 * @author ruoyi
 * @date 2025-07-23
 */
public interface ILhsOrderService 
{
    /**
     * 查询莱回收订单
     * 
     * @param id 莱回收订单主键
     * @return 莱回收订单
     */
    public LhsOrderVo selectLhsOrderById(String id);

    /**
     * 查询莱回收订单列表
     * 
     * @param lhsOrder 莱回收订单
     * @return 莱回收订单集合
     */
    public List<LhsOrderVo> selectLhsOrderList(LhsOrderDto lhsOrder);

    /**
     * 新增莱回收订单
     * 
     * @param lhsOrder 莱回收订单
     * @return 结果
     */
    public LhsOrder insertLhsOrder(LhsOrder lhsOrder);

    /**
     * 修改莱回收订单
     * 
     * @param lhsOrder 莱回收订单
     * @return 结果
     */
    public LhsOrder updateLhsOrder(LhsOrder lhsOrder);

    /**
     * 批量删除莱回收订单
     * 
     * @param ids 需要删除的莱回收订单主键集合
     * @return 结果
     */
    public int deleteLhsOrderByIds(String[] ids);

    /**
     * 删除莱回收订单信息
     * 
     * @param id 莱回收订单主键
     * @return 结果
     */
    public int deleteLhsOrderById(String id);

    Map<String, Object> getDailyRevenue(LhsOrderDto lhsOrder);

    Map<String, Object>  getDailyAveragePrice(LhsOrderDto lhsOrder);

    Map<String,Object> queryOrdeInfoByCategory(LhsOrderDto lhsOrder);

    List<LhsOrderVo> getAllOrdersWithItems(LhsOrderDto lhsOrder);

    Map<String, Object> queryOrdeInfoSummaryByPad(LhsOrderDto lhsOrder);

    Map<String, Object> queryOrdeInfoByAmount(LhsOrderDto lhsOrder);

    Map<String, List<LhsOrderVo>>  queryOrderListByProductName(LhsOrderDto lhsOrder);

    LhsOrderVo queryCartOrderItemByMac(LhsOrderItemDto dto);
}
